<template>
    <van-grid :column-num="5">
        <van-grid-item v-for="item in channelArr" :to="{path:'/channel',query:{id:item.id}}" :key="item.id" :icon="item.icon_url" :text="item.name" />
    </van-grid>
</template>

<script>
export default {
    data(){
        return{}
    },
    props:['channelArr'],
    mounted(){console.log(111,this.channelArr);},
    methods:{
        goto(id){
            console.log(id);
        }
    }
}
</script>

<style scoped>
    
</style>